package com.ada.csv;

import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class App {

    public static void main(String[] args) throws IOException {

        Reader in = new FileReader("E:\\迅雷下载\\187978090orders_export2023-07-11-19-11-26.csv");
        Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in);
        final CSVParser parser = new CSVParser(in, CSVFormat.EXCEL.withHeader());
        for (CSVRecord record : parser) {
            System.out.println(record.get(0));
        }

    }
}
